package zeno.project.springboot.controller.core;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ZhiYong
 * @ClassName IndexController.java
 * @Description 身份认证和权限控制
 * @createTime 2021/04/17 22:54:00
 */
@Controller
public class IndexController {

    @RequestMapping("/login")
    public String goToLogin() {
        return "login";
    }

    @RequestMapping("/unauthorized")
    public String unauthorized() {
        return "unauthorized";
    }

    @RequestMapping("/logout")
    public String logout() {
        return "login";
    }
}
